Returns the result of applying the predicate to the value if this is Right or true if this is Left.
true
Returns the result of applying the predicate to the value if this is Right or false if this is Left.
false
Returns true if the element is equal to the value of this Either, or false otherwise.
Returns the same Right if the predicate is satisfied for the value. Otherwise returns null.
null
Returns the same Right casted to type T if it is T. Otherwise returns null.
Returns Some containing the same Right casted to type T if it is T. Otherwise returns None.
Returns the same Right if the predicate is not satisfied for the value. Otherwise returns null.
Returns Some containing the same Right if the predicate is not satisfied for the value. Otherwise returns None.
Returns Some containing the same Right if the predicate is satisfied for the value. Otherwise returns None.
Transforms Left with leftTransform or Right with rightTransform.
Runs action if this is a Right. Returns Unit without any action if this is a Left.
Gets value of this Right.
Gets value of this Right or null if this is Left.
Maps value of this Right using transform.
Returns false if the predicate is met by the value if this is Right or true otherwise.
Swaps Left to Right and Right to Left.
Returns a Some containing the Right value if it exists, or a None if this is a Left.
Returns true if this is a Left or false if this is Right.
Returns true if this is a Right or false if this is Left.
Projects Either as Left.
Projects Either as Right.